
#include "type.h"
#include "stdio.h"
#include "const.h"
#include "protect.h"
#include "string.h"
#include "fs.h"
#include "proc.h"
#include "tty.h"
#include "console.h"
#include "global.h"
#include "proto.h"

/*****************************************************************************
 *                                fordir
 *****************************************************************************/
/**
 * acess every file in root dir.
 * 
 * @return Zero if successful, otherwise -1.
 *****************************************************************************/
PUBLIC int fordir(void)
{
	MESSAGE msg;
	msg.type   = FORDIR;

	send_recv(BOTH, TASK_FS, &msg);
	assert(msg.type == SYSCALL_RET);
	int count = msg.FILE_COUNT;
	

	return msg.RETVAL;
}

